/*
 * XML Type:  XTableHPolicy
 * Namespace: http://www.seedwill.com/xul/core
 * Java type: com.seedwill.xul.core.XTableHPolicy
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.core.impl;
/**
 * An XML XTableHPolicy(@http://www.seedwill.com/xul/core).
 *
 * This is a complex type.
 */
public class XTableHPolicyImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.seedwill.xul.core.XTableHPolicy
{
    private static final long serialVersionUID = 1L;
    
    public XTableHPolicyImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ENABLELEFTSIDER$0 = 
        new javax.xml.namespace.QName("", "enableLeftSider");
    private static final javax.xml.namespace.QName LEFTSIDERPERCENT$2 = 
        new javax.xml.namespace.QName("", "leftSiderPercent");
    private static final javax.xml.namespace.QName LEFTSIDERWIDTH$4 = 
        new javax.xml.namespace.QName("", "leftSiderWidth");
    private static final javax.xml.namespace.QName ENABLERIGHTSIDER$6 = 
        new javax.xml.namespace.QName("", "enableRightSider");
    private static final javax.xml.namespace.QName RIGHTSIDERPERCENT$8 = 
        new javax.xml.namespace.QName("", "rightSiderPercent");
    private static final javax.xml.namespace.QName RIGHTSIDERWIDTH$10 = 
        new javax.xml.namespace.QName("", "rightSiderWidth");
    private static final javax.xml.namespace.QName WIDTH$12 = 
        new javax.xml.namespace.QName("", "width");
    private static final javax.xml.namespace.QName WIDTHPERCENT$14 = 
        new javax.xml.namespace.QName("", "widthPercent");
    private static final javax.xml.namespace.QName ENABLEAVGWIDTH$16 = 
        new javax.xml.namespace.QName("", "enableAvgWidth");
    private static final javax.xml.namespace.QName AVGWIDTH$18 = 
        new javax.xml.namespace.QName("", "avgWidth");
    
    
    /**
     * Gets the "enableLeftSider" element
     */
    public boolean getEnableLeftSider()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLELEFTSIDER$0, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "enableLeftSider" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetEnableLeftSider()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLELEFTSIDER$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "enableLeftSider" element
     */
    public void setEnableLeftSider(boolean enableLeftSider)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLELEFTSIDER$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENABLELEFTSIDER$0);
            }
            target.setBooleanValue(enableLeftSider);
        }
    }
    
    /**
     * Sets (as xml) the "enableLeftSider" element
     */
    public void xsetEnableLeftSider(org.apache.xmlbeans.XmlBoolean enableLeftSider)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLELEFTSIDER$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ENABLELEFTSIDER$0);
            }
            target.set(enableLeftSider);
        }
    }
    
    /**
     * Gets the "leftSiderPercent" element
     */
    public boolean getLeftSiderPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LEFTSIDERPERCENT$2, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "leftSiderPercent" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetLeftSiderPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(LEFTSIDERPERCENT$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "leftSiderPercent" element
     */
    public void setLeftSiderPercent(boolean leftSiderPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LEFTSIDERPERCENT$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LEFTSIDERPERCENT$2);
            }
            target.setBooleanValue(leftSiderPercent);
        }
    }
    
    /**
     * Sets (as xml) the "leftSiderPercent" element
     */
    public void xsetLeftSiderPercent(org.apache.xmlbeans.XmlBoolean leftSiderPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(LEFTSIDERPERCENT$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(LEFTSIDERPERCENT$2);
            }
            target.set(leftSiderPercent);
        }
    }
    
    /**
     * Gets the "leftSiderWidth" element
     */
    public double getLeftSiderWidth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LEFTSIDERWIDTH$4, 0);
            if (target == null)
            {
                return 0.0;
            }
            return target.getDoubleValue();
        }
    }
    
    /**
     * Gets (as xml) the "leftSiderWidth" element
     */
    public org.apache.xmlbeans.XmlDouble xgetLeftSiderWidth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(LEFTSIDERWIDTH$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "leftSiderWidth" element
     */
    public void setLeftSiderWidth(double leftSiderWidth)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LEFTSIDERWIDTH$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LEFTSIDERWIDTH$4);
            }
            target.setDoubleValue(leftSiderWidth);
        }
    }
    
    /**
     * Sets (as xml) the "leftSiderWidth" element
     */
    public void xsetLeftSiderWidth(org.apache.xmlbeans.XmlDouble leftSiderWidth)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(LEFTSIDERWIDTH$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(LEFTSIDERWIDTH$4);
            }
            target.set(leftSiderWidth);
        }
    }
    
    /**
     * Gets the "enableRightSider" element
     */
    public boolean getEnableRightSider()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLERIGHTSIDER$6, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "enableRightSider" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetEnableRightSider()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLERIGHTSIDER$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "enableRightSider" element
     */
    public void setEnableRightSider(boolean enableRightSider)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLERIGHTSIDER$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENABLERIGHTSIDER$6);
            }
            target.setBooleanValue(enableRightSider);
        }
    }
    
    /**
     * Sets (as xml) the "enableRightSider" element
     */
    public void xsetEnableRightSider(org.apache.xmlbeans.XmlBoolean enableRightSider)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLERIGHTSIDER$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ENABLERIGHTSIDER$6);
            }
            target.set(enableRightSider);
        }
    }
    
    /**
     * Gets the "rightSiderPercent" element
     */
    public boolean getRightSiderPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RIGHTSIDERPERCENT$8, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "rightSiderPercent" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetRightSiderPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(RIGHTSIDERPERCENT$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "rightSiderPercent" element
     */
    public void setRightSiderPercent(boolean rightSiderPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RIGHTSIDERPERCENT$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RIGHTSIDERPERCENT$8);
            }
            target.setBooleanValue(rightSiderPercent);
        }
    }
    
    /**
     * Sets (as xml) the "rightSiderPercent" element
     */
    public void xsetRightSiderPercent(org.apache.xmlbeans.XmlBoolean rightSiderPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(RIGHTSIDERPERCENT$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(RIGHTSIDERPERCENT$8);
            }
            target.set(rightSiderPercent);
        }
    }
    
    /**
     * Gets the "rightSiderWidth" element
     */
    public double getRightSiderWidth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RIGHTSIDERWIDTH$10, 0);
            if (target == null)
            {
                return 0.0;
            }
            return target.getDoubleValue();
        }
    }
    
    /**
     * Gets (as xml) the "rightSiderWidth" element
     */
    public org.apache.xmlbeans.XmlDouble xgetRightSiderWidth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(RIGHTSIDERWIDTH$10, 0);
            return target;
        }
    }
    
    /**
     * Sets the "rightSiderWidth" element
     */
    public void setRightSiderWidth(double rightSiderWidth)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RIGHTSIDERWIDTH$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RIGHTSIDERWIDTH$10);
            }
            target.setDoubleValue(rightSiderWidth);
        }
    }
    
    /**
     * Sets (as xml) the "rightSiderWidth" element
     */
    public void xsetRightSiderWidth(org.apache.xmlbeans.XmlDouble rightSiderWidth)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(RIGHTSIDERWIDTH$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(RIGHTSIDERWIDTH$10);
            }
            target.set(rightSiderWidth);
        }
    }
    
    /**
     * Gets array of all "width" elements
     */
    public double[] getWidthArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(WIDTH$12, targetList);
            double[] result = new double[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getDoubleValue();
            return result;
        }
    }
    
    /**
     * Gets ith "width" element
     */
    public double getWidthArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WIDTH$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getDoubleValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "width" elements
     */
    public org.apache.xmlbeans.XmlDouble[] xgetWidthArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(WIDTH$12, targetList);
            org.apache.xmlbeans.XmlDouble[] result = new org.apache.xmlbeans.XmlDouble[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "width" element
     */
    public org.apache.xmlbeans.XmlDouble xgetWidthArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(WIDTH$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (org.apache.xmlbeans.XmlDouble)target;
        }
    }
    
    /**
     * Returns number of "width" element
     */
    public int sizeOfWidthArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WIDTH$12);
        }
    }
    
    /**
     * Sets array of all "width" element
     */
    public void setWidthArray(double[] widthArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(widthArray, WIDTH$12);
        }
    }
    
    /**
     * Sets ith "width" element
     */
    public void setWidthArray(int i, double width)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WIDTH$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setDoubleValue(width);
        }
    }
    
    /**
     * Sets (as xml) array of all "width" element
     */
    public void xsetWidthArray(org.apache.xmlbeans.XmlDouble[]widthArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(widthArray, WIDTH$12);
        }
    }
    
    /**
     * Sets (as xml) ith "width" element
     */
    public void xsetWidthArray(int i, org.apache.xmlbeans.XmlDouble width)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(WIDTH$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(width);
        }
    }
    
    /**
     * Inserts the value as the ith "width" element
     */
    public void insertWidth(int i, double width)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(WIDTH$12, i);
            target.setDoubleValue(width);
        }
    }
    
    /**
     * Appends the value as the last "width" element
     */
    public void addWidth(double width)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(WIDTH$12);
            target.setDoubleValue(width);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "width" element
     */
    public org.apache.xmlbeans.XmlDouble insertNewWidth(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().insert_element_user(WIDTH$12, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "width" element
     */
    public org.apache.xmlbeans.XmlDouble addNewWidth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(WIDTH$12);
            return target;
        }
    }
    
    /**
     * Removes the ith "width" element
     */
    public void removeWidth(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WIDTH$12, i);
        }
    }
    
    /**
     * Gets the "widthPercent" element
     */
    public boolean getWidthPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WIDTHPERCENT$14, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "widthPercent" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetWidthPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(WIDTHPERCENT$14, 0);
            return target;
        }
    }
    
    /**
     * Sets the "widthPercent" element
     */
    public void setWidthPercent(boolean widthPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WIDTHPERCENT$14, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(WIDTHPERCENT$14);
            }
            target.setBooleanValue(widthPercent);
        }
    }
    
    /**
     * Sets (as xml) the "widthPercent" element
     */
    public void xsetWidthPercent(org.apache.xmlbeans.XmlBoolean widthPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(WIDTHPERCENT$14, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(WIDTHPERCENT$14);
            }
            target.set(widthPercent);
        }
    }
    
    /**
     * Gets the "enableAvgWidth" element
     */
    public boolean getEnableAvgWidth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEAVGWIDTH$16, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "enableAvgWidth" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetEnableAvgWidth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLEAVGWIDTH$16, 0);
            return target;
        }
    }
    
    /**
     * Sets the "enableAvgWidth" element
     */
    public void setEnableAvgWidth(boolean enableAvgWidth)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEAVGWIDTH$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENABLEAVGWIDTH$16);
            }
            target.setBooleanValue(enableAvgWidth);
        }
    }
    
    /**
     * Sets (as xml) the "enableAvgWidth" element
     */
    public void xsetEnableAvgWidth(org.apache.xmlbeans.XmlBoolean enableAvgWidth)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLEAVGWIDTH$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ENABLEAVGWIDTH$16);
            }
            target.set(enableAvgWidth);
        }
    }
    
    /**
     * Gets the "avgWidth" element
     */
    public double getAvgWidth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AVGWIDTH$18, 0);
            if (target == null)
            {
                return 0.0;
            }
            return target.getDoubleValue();
        }
    }
    
    /**
     * Gets (as xml) the "avgWidth" element
     */
    public org.apache.xmlbeans.XmlDouble xgetAvgWidth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(AVGWIDTH$18, 0);
            return target;
        }
    }
    
    /**
     * Sets the "avgWidth" element
     */
    public void setAvgWidth(double avgWidth)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AVGWIDTH$18, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AVGWIDTH$18);
            }
            target.setDoubleValue(avgWidth);
        }
    }
    
    /**
     * Sets (as xml) the "avgWidth" element
     */
    public void xsetAvgWidth(org.apache.xmlbeans.XmlDouble avgWidth)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(AVGWIDTH$18, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(AVGWIDTH$18);
            }
            target.set(avgWidth);
        }
    }
}
